const fs = require("fs");

const reader = fs.createReadStream("./txt.txt");
const writer = fs.createWriteStream("./xjh.txt");

reader.on("data", (data) => {
  console.log(data.toString("utf-8"));
});
reader.pipe(writer);

writer.close();
